package exception;


public class test
{
    public static void main(String[] args)
    {
        System.out.println(test(null) + "   " + test("") + "  " + test("0" ));
    }

    public static int test(String s )
    {
        try
        {
            return s.charAt(0) - '0';
        }catch (NullPointerException e)
        {
            return 1;
        }catch (Exception e)
        {
            return 2;
        }finally
        {
            return 3;
        }
    }
}
